<template>
  <a
    href="javascript:void(0);"
    :class="active === true ? 'action active' : 'action'"
  >
    <slot></slot>
  </a>
</template>

<script>
export default {
  name: "detailButton",
  props: {
    active: {
      type: Boolean,
      default: false,
    },
  },
};
</script>

<style lang='scss' scoped>
.action {
  display: inline-block;
  height: 36px;
  padding: 0 1.3em;
  line-height: 34px;
  border: 1px solid #666;
  border-radius: 36px;
  color: #666;
  cursor: pointer;
  margin-right: 1.3em;

  &.active {
    background-color: $ThemeColor;
    border-color: $ThemeColor;
    color: #fff;

    &:hover{
      background-color: #f16091;
    }
  }
}
</style>
